﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for productBV_PV
/// </summary>
namespace Bestlife.ERP.BusinessRules
{
    public class productBV_PV
    {
        public productBV_PV()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public static Boolean pvbv(Bestlife.ERP.Entities.product pro)//insert
        {
            return Bestlife.ERP.DataAccess.product.insertproduct(pro);
        }

        public static Boolean insert(Bestlife.ERP.Entities.product pro)//update
        {
            return Bestlife.ERP.DataAccess.product.update(pro);
        }

        public static Boolean insertimage(string[] imageList,string proid)//insert image
        {
            return Bestlife.ERP.DataAccess.product.image(imageList,proid);
        }

        public static decimal pvbvchange(decimal pvvalue, int precent)
        {
            return Bestlife.ERP.DataAccess.product.setpvbv(pvvalue, precent);
        }//PV,BV Calculation

        public static Boolean statuschak()
        {
            return Bestlife.ERP.DataAccess.product.status();
        }

        public static string contactperson(string sup)
        {
            return Bestlife.ERP.DataAccess.product.contctperson(sup);
        }//Get Supplier Contac Details

        public static decimal productprice(string name)
        {
            return Bestlife.ERP.DataAccess.product.pro_price(name);
        }//Get Product Price

        public static string subcat(string category)
        {
            return Bestlife.ERP.DataAccess.product.catsub(category);
        }// Get Sub categories according to Category

    }
}